<?php
/**
 *  重置密码
 * @author Todd
 *
 */
class Control_Account_resetPassword extends Control_Account {
	function resetPassword() {
		$id = MooForm::request('id');
		
		$resonData['code'] = "1001";
		$resonData['msg']  = "参数不存在";
		if(empty($id)) {
			exit(MooJson::encode($resonData));
		}
		
		$resetPassword = MooConfig::get('account.resetPassword');
		
		$dataArr['id'] = $id;
		$sign = $this->getSign($dataArr);
		
		//　根据 key value 查询到json数据 返回即可
		$url = $resetPassword . "&id=" . $id . "&sign=" . $sign;
		$req = MooUtil::curl_send($url);
		
		exit($req);
	}
}